<?php 
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' ) ;

JFilterOutput::objectHTMLSafe( $this->row );

?>

<script language="javascript" type="text/javascript">

function submitbutton( pressbutton, section ) {
	var form = document.adminForm;
	if (pressbutton == 'apply' || pressbutton == 'save') {
		if ( form.name.value == "" ) {
			alert( "<?php echo JText::_('Subscriber must have a name') ?>" );
			return;
		} else if (form.email.value == "") {
			alert( "<?php echo JText::_('Subscriber must have email') ?>" );
			return;
		}
	}
	submitform(pressbutton);
	return;
}

</script>

<form action="index.php?option=com_letterman&controller=subscribers" method="post" name="adminForm" id="adminForm" >
  
  <table cellspacing="0" cellpadding="0" border="0" width="100%" class="adminform" >
  
	<tr>
		<td>&nbsp;</td>
		<td width="90%"><?php if ( $row->subscribe_date ) : ?>
			<?php echo JText::_('Signup date') ?> : 
			<?php echo JHTML::_('date', $row->subscribe_date , JText::_('DATE_FORMAT_LC2') )?><?php endif ?>
		</td>
	</tr>
	
	<tr>
		<td nowrap="nowrap" style="text-align:right"><label for="name"><?php echo JText::_('Name') ?> : </label></td>
		<td width="90%">
			<input id="name" type="text" name="name" value="<?php echo $this->escape( $this->row->name ) ?>" class="inputbox" size="64" />
		</td>
	</tr>
	
	<tr>
		<td nowrap="nowrap" style="text-align:right"><label for="name"><?php echo JText::_('Email') ?> : </label></td>
		<td width="90%">
			<input id="email" type="text" name="email" value="<?php echo $this->escape( $this->row->email ) ?>" class="inputbox" size="64" />
		</td>
	</tr>
	
	<tr>
		<td nowrap="nowrap" style="text-align:right"><label for="name"><?php echo JText::_('Confirmed') ?> : </label></td>
		<td width="90%">
			<?php echo JHTML::_('select.booleanlist',  'confirmed' , 'class="inputbox"' , $this->row->confirmed ) ?>
		</td>
	</tr>	
	
  </table>
  
  <input type="hidden" name="task" value="" />
  <input type="hidden" name="id" value="<?php echo $this->row->id ? $this->row->id : 0 ?>" />
  <input type="hidden" name="hidemainmenu" value="0" />
  <?php echo JHTML::_( 'form.token' ) ?>
</form>

